Skip to content

Configure density and gradient corrections independently - #1285

Draft
svchb wants to merge 29 commits into
trixi-framework:mainfrom
svchb:feature/independent-correction-configuration
Draft

Configure density and gradient corrections independently#1285
svchb wants to merge 29 commits into
trixi-framework:mainfrom
svchb:feature/independent-correction-configuration

Conversation

@svchb

@svchb svchb commented Aug 15, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • add CorrectionConfiguration for independent density and gradient corrections
  • add density_correction and gradient_correction keywords to WCSPH, EDAC, and dummy boundaries
  • compose correction caches without duplicating lifecycle logic
  • retain the existing correction keyword and reject ambiguous mixed configuration
  • add metadata and explicit IISPH rejection
  • move combined-configuration coverage into a dedicated test file

Stack

Depends on #1289 and therefore on the complete correction-method stack. This PR targets main and temporarily includes the preceding commits.

Review-only diff: svchb/TrixiParticles.jlOpen@fix/asymmetric-correction-pressure-conservation...feature/independent-correction-configuration

Isolated layer: 10 files, 194 additions, 13 deletions.

Verification

  • complete unit suite passed
  • JuliaFormatter and git diff --check passed

@codecov

codecov Bot commented Aug 16, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 86.72875% with 114 lines in your changes missing coverage. Please review.
✅ Project coverage is 90.27%. Comparing base (4dd03d8) to head (28ed03b).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
test/examples/gpu.jl 0.00% 95 Missing ⚠️
...rc/schemes/fluid/weakly_compressible_sph/system.jl 90.00% 6 Missing ⚠️
src/general/corrections.jl 95.06% 4 Missing ⚠️
src/schemes/structure/structure.jl 81.25% 3 Missing ⚠️
src/schemes/fluid/pressure_acceleration.jl 93.93% 2 Missing ⚠️
...chemes/fluid/implicit_incompressible_sph/system.jl 90.00% 1 Missing ⚠️
src/schemes/structure/rigid_body/system.jl 93.33% 1 Missing ⚠️
test/general/corrections/coupling.jl 99.09% 1 Missing ⚠️
test/general/corrections/kernel.jl 98.70% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1285      +/-   ##
==========================================
- Coverage   90.49%   90.27%   -0.23%     
==========================================
  Files         141      149       +8     
  Lines       11419    12200     +781     
==========================================
+ Hits        10334    11013     +679     
- Misses       1085     1187     +102     
Flag Coverage Δ
total 90.27% <86.72%> (-0.23%) ⬇️
unit 79.66% <86.14%> (+1.83%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@svchb
svchb force-pushed the feature/independent-correction-configuration branch from 51b854d to 16a6542 Compare August 16, 2026 13:33
svchb added 18 commits August 27, 2026 15:49
Fix conflicts in EDAC and WCSPH RHS:
- adopt mapreduce_neighbor / add_dv_* functional API from origin/main
- preserve gradient/force correction splitting from stack (gradient_correction for pressure/shifting, force_correction for free-surface)
…tion-pressure-conservation

# Conflicts:
#	src/schemes/fluid/entropically_damped_sph/rhs.jl
#	src/schemes/fluid/weakly_compressible_sph/rhs.jl
#	src/schemes/structure/structure.jl
…ion' into fix/asymmetric-correction-pressure-conservation

# Conflicts:
#	src/general/corrections.jl
#	src/schemes/fluid/entropically_damped_sph/rhs.jl
#	src/schemes/fluid/weakly_compressible_sph/rhs.jl
#	test/general/corrections.jl
#	test/general/corrections/gradient.jl
#	test/general/corrections/kernel.jl
…orrection-configuration

# Conflicts:
#	src/schemes/fluid/entropically_damped_sph/rhs.jl
#	src/schemes/fluid/weakly_compressible_sph/rhs.jl
#	src/schemes/structure/structure.jl
…t-correction-configuration

# Conflicts:
#	src/schemes/structure/structure.jl
#	test/general/corrections/common.jl
@svchb svchb added enhancement New feature or request breaking changes This change will break the public API and requires a new major release labels Sep 1, 2026
svchb added a commit that referenced this pull request Sep 1, 2026
…tly into drafty_draft

# Conflicts:
#	examples/fluid/dam_break_2d.jl
@svchb svchb mentioned this pull request Sep 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaking changes This change will break the public API and requires a new major release enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant